package com.young.springdemo.service.builderFactory;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

//@Component
public class Test {

//    @PostConstruct
    public void test() throws Exception {
        Class<?> aClass = Class.forName("com.young.springdemo.service.builderFactory.HeroActorBuilder");
        ActorBuilder actorBuilder = (ActorBuilder)aClass.newInstance();
        Actor actor = actorBuilder.construct();
        System.out.println(actor.toString());
    }
}
